<template>
  <card ref="Card">
    <h1 class="bill-h1">当日快递揽收{{formData.lanShou}}件</h1>
    <h1 class="bill-h1">当日快递中转{{formData.transfer}}件</h1>
    <h1 class="bill-h1">当日快递签收{{formData.signFor}}件</h1>
  </card>
</template>

<script>
  import {getBillApi} from '@/api/repertory'

  export default {
    name: "Page7",
    data() {
      return {
        formData: {}
      }
    },
    mounted() {
      this.getBill()
    },
    methods: {
      getBill() {
        this.$refs.Card.start()
        getBillApi().then(result => {
          this.formData = result.resultParam
          this.$refs.Card.stop()
        })
      }
    }
  }
</script>

<style lang="scss">
  .bill-h1 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
  }

  .bill-h1:last-child {
    margin-bottom: 0;
  }
</style>
